/*
 * Created by SharpDevelop.
 * User: MyWife
 * Date: 1/28/2011
 * Time: 11:00 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Drawing;
using System.Windows.Forms;

namespace MediafireDownloader
{
	/// <summary>
	/// Description of PasswordForm.
	/// </summary>
	public partial class PasswordForm : Form
	{
		public PasswordForm(string url)
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			label1.Text = url;
			this.ShowDialog();
		}
		
		void Button1Click(object sender, EventArgs e)
		{
			this.DialogResult = DialogResult.Cancel;
			this.Close();
		}
		
		void Button2Click(object sender, EventArgs e)
		{
			this.DialogResult = DialogResult.OK;
			this.Close();
		}
		
		public string Password{
			get { return textBox1.Text; }
		}
	}
}
